package org.itboys.core.dao.coupon;

import org.apache.ibatis.annotations.Param;
import org.itboys.core.entity.mysql.coupon.record.SundayMemberCoupon;
import org.itboys.core.entity.mysql.coupon.record.SundayMemberCouponExample;

import java.util.List;

/**
*@Author: jiaqilei
*@Date: 17:29 2018/12/10
*@Discription: 用户领取优惠券
*/
public interface SundayCouponRecordMapper {
    int delete(Long id);

    int insert(SundayMemberCoupon record);
    /**批量新增*/
    int batchInsert(@Param("memberCoupons") List<SundayMemberCoupon> memberCoupons);

    List<SundayMemberCoupon> selectByExample(SundayMemberCouponExample example);

    SundayMemberCoupon select(Long id);

    int update(SundayMemberCoupon record);

    long countByExample(SundayMemberCouponExample example);
}